package com.buydeem.adapter;

/**
 * 老登录实现
 *
 * @author zengchao
 * @date 2022-04-29 11:51:51
 */
public class OldLoginServiceImpl implements IOldLoginService{
    private static final String PASSWORD = "123456";
    @Override
    public void login(String userName, String password) {
        if (PASSWORD.equals(password)){
            System.out.println(String.format("老登录实现:用户[%s]登录成功",userName));
        }else {
            throw new RuntimeException("密码错误");
        }
    }
}
